let ndckl_x = ['01月', '02月', '03月', '04月', '05月', '06月', '07月', '08月', '09月', '10月', '11月', '12月'];
let ndckl_y_1 = [];
let ndckl_y_2 = [];
ndckl_x.forEach(a=>{
	ndckl_y_1.push(parseInt(Math.random()*100000 + 1));
	ndckl_y_2.push(parseInt(Math.random()*100000 + 1));
})

let ndcklOpt = {
  color: ['#34BAC6', '#0091FF'],
  tooltip: {
    trigger: 'axis',
    axisPointer: {
      type: 'cross',
      label: {
        backgroundColor: '#6a7985'
      }
    }
  },
  legend: {
    data: ['车流', '客流'],
	right: "20",
	top: "18",
	icon: "rect",
	itemHeight: 10,
	itemWidth: 10
  },
  grid: {
    left: '3%',
    right: '4%',
    bottom: '3%',
    containLabel: true
  },
  xAxis: [
    {
      type: 'category',
      boundaryGap: false,
      data: ndckl_x,
	  axisLine: {
	    lineStyle: {
	      color: '#c1e4ff'
	    }
	  },
	  axisLabel: {
	    interval:0,
	    color: '#000',
	    fontSize:10
	  },
    }
  ],
  yAxis: [
    {
      type: 'value',
    }
  ],
  series: [
    {
      name: '车流',
      type: 'line',
      stack: 'Total',
      smooth: true,
      lineStyle: {
        width: 2
      },
      showSymbol: false,
      areaStyle: {
        opacity: 0.8,
        color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [
          {
            offset: 0,
            color: '#0091FF'
          },
          {
            offset: 1,
            color: 'rgba(0,145,255,0.00)'
          }
        ])
      },
      emphasis: {
        focus: 'series'
      },
      data: ndckl_y_1
    },
    {
      name: '客流',
      type: 'line',
      stack: 'Total',
      smooth: true,
      lineStyle: {
        width: 2
      },
      showSymbol: false,
      areaStyle: {
        opacity: 0.8,
        color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [
          {
            offset: 0,
            color: '#00C4FF'
          },
          {
            offset: 1,
            color: 'rgba(0,145,255,0.00)'
          }
        ])
      },
      emphasis: {
        focus: 'series'
      },
      data: ndckl_y_2
    }
  ]
};



const ndcklChart = echarts.init(document.getElementById('ndckl'));
ndcklChart.setOption(ndcklOpt)